/*
 * @Author: pjji
 * @describe: 基础路由
 * @LastEditTime: 2022-02-11 10:29:46
 */
export const tabbarRoutes = [
    {
        path: '/home',
        component: () => import('../views/home/index.vue'),
        name: 'home',
        meta: {
            title: '首页',
            icon: 'home-o',
            keepAlive: false
        }
    },
    {
        path: '/demo1',
        component: () => import('../views/demo1/index.vue'),
        name: 'demo1',
        meta: {
            title: '栏目1',
            icon: 'search',
            keepAlive: false
        }
    },
    {
        path: '/demo2',
        component: () => import('../views/demo2/index.vue'),
        name: 'demo2',
        meta: {
            title: '栏目2',
            icon: 'friends-o',
            customGoBack: true,
            keepAlive: false
        }
    }
]

export default {
    routes: [
        ...tabbarRoutes,
        {
            path: '',
            redirect: '/home'
        },
    ]
}